<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>location和history</title>
</head>

<body>
    <h1>location和history</h1>
    <button class=“vue-router” onclick="turnTo()">转到vue-router</button>
    <script>
        function turnTo() {
            window.location.replace("https://router.vuejs.org/zh/guide/essentials/navigation.html")
        }
    </script>
</body>

</html>